var Mock = require('mockjs');

exports.response = function (req, res) {
    return Mock.mock({
        "code": 0,
        "msg": "OK",
        "data": {
            "fieldList": [{
                "id": "stockYield",
                "name": "股票收益"
            },
            {
                "id": "benchYield",
                "name": "基准收益"
            },
            {
                "id": "excessIncomeYield",
                "name": "超额收益"
            },
            {
                "id": "assetAllocation",
                "name": "资产配置"
            },
            {
                "id": "stockChoice",
                "name": "个股选择"
            },
            {
                "id": "mutualBenefit",
                "name": "交互收益"
            }],
            "data": {
                "stockYield": 0.002969,
                "benchYield": 0.019351,
                "excessIncomeYield": -0.016382,
                "assetAllocation": -0.009551,
                "stockChoice": 0.002553,
                "mutualBenefit": -0.008652
            }
        }
    })
}